package com.wuyou.em;

public enum ResultEnum {
    SUCCESS(10000,"操作成功"),
    UNKNOWN_ACCOUNT(10001,"账户不存在"),
    PASSWORD_ERROR(10002,"密码不正确"),
    TOKEN_INVALID(10003,"无效token"),
    MESSAGE_ERROR(10004,"参数错误"),
    VERIFICATION_CODE_ERROR(10005,"验证失败"),
    BOOKING_ERROR(10006,"预订失败"),
    NO_LISTINGS_YET(10007,"区域暂无房源"),
    ACCEPTING(10008,"等待受理"),
    ACCEPTED_SUCCESSFULLY(10009,"受理成功"),
    PHONE_ERROR(10010,"手机号不合法"),
    ERROR(99999,"操作失败");


    private Integer status;
    private String  statusInfo;



    ResultEnum(Integer status, String statusInfo) {
        this.status = status;
        this.statusInfo = statusInfo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusInfo() {
        return statusInfo;
    }

    public void setStatusInfo(String statusInfo) {
        this.statusInfo = statusInfo;
    }
}
